<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>工程师</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/ckeditor_new/ckeditor.js"></script>
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(function(){
	if($("#sysUserId").val() !== ''){
		showChoosePEgRoomBtns(true);
	}else{
		showChoosePEgRoomBtns(false);
	}
});
function chooseBack(){
	showChoosePEgRoomBtns(true);
}
function showChoosePEgRoomBtns(show){
	if(show){
		$("#belongEnginId_easyuiChoose").show();
		$("#belongEnginId_easyuiClear").show();
	}else{
		$("#belongEnginId_easyuiChoose").hide();
		$("#belongEnginId_easyuiClear").hide();
	}
}
</script>
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" usePlugin="password"
		layout="table" action="zyEngineerController.do?doUpdate" tiptype="3">
		<input id="id" name="id" type="hidden" value="${zyEngineerPage.id }">
		<input id="createName" name="isDelete" type="hidden" value="${zyEngineerPage.isDelete }">
		<input id="createName" name="createName" type="hidden" value="${zyEngineerPage.createName }">
		<input id="createBy" name="createBy" type="hidden" value="${zyEngineerPage.createBy }">
		<input id="createDate" name="createDate" type="hidden" value="${zyEngineerPage.createDate }">
		<input id="updateName" name="updateName" type="hidden" value="${zyEngineerPage.updateName }">
		<input id="updateBy" name="updateBy" type="hidden" value="${zyEngineerPage.updateBy }">
		<input id="updateDate" name="updateDate" type="hidden" value="${zyEngineerPage.updateDate }">
		<table cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right" style="width: 200px;">
					<label class="Validform_label"> 系统用户:</label>
				</td>
				<td class="value" style="width: 500px;">
					<input name="tsBaseUser.id" type="hidden" id="sysUserId" value='${zyEngineerPage.tsBaseUser.id}'>
					<input name="realName" class="inputxt" id="realName" value='${zyEngineerPage.tsBaseUser.realName}' readonly="readonly" datatype="*" nullmsg="请选择系统用户"/>
					<t:choose url="zyContactsController.do?zySysUsers" name="sysUserList" fun="chooseBack"
						icon="icon-search" title="系统用户列表" isclear="true"
						hiddenName="sysUserId" hiddenid="id" textname="realName" /> 
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">系统用户</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 工程师编号 :</label>
				</td>
				<td class="value">
					<input id=engineerNo name="engineerNo" type="text" style="width: 150px" class="inputxt" datatype="*"  value='${zyEngineerPage.engineerNo}' /> 
					<span class="Validform_checktip"></span> 
					<label class="Validform_label" style="display: none;">工程师编号</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 姓名: </label>
				</td>
				<td class="value">
					<input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" value='${zyEngineerPage.name}' />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">姓名</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 性别: </label>
				</td>
				<td class="value">
					<t:dictSelect field="gender" type="select" typeGroupCode="<%=StaticValue.DIC_SEX %>" defaultVal="${zyEngineerPage.gender}" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">性别</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 手机号:
				</label></td>
				<td class="value"><input id="cellphone" name="cellphone"
					type="text" style="width: 150px" class="inputxt" datatype="cPhone" ajaxurl="zyEngineerController.do?checkEgCellphoneUnique&egId=${zyEngineerPage.id }"
					value='${zyEngineerPage.cellphone}'> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">手机号</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 邮箱: </label>
				</td>
				<td class="value"><input id="email" name="email" type="text"
					style="width: 150px" class="inputxt" datatype="e"
					value='${zyEngineerPage.email}'> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">邮箱</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 所属机构:
				</label></td>
				<td class="value"><input name="belongOrg.id" type="hidden"
					id="belongOrgId" value='${zyEngineerPage.belongOrg.id}'> <input
					name="shortname" class="inputxt" id="shortname"
					value='${zyEngineerPage.belongOrg.shortname}' readonly="readonly"
					datatype="*" /> <t:choose hiddenName="belongOrgId" hiddenid="id"
						url="zyContactsController.do?zyOrgs" name="orgList"
						icon="icon-search" title="机构列表" textname="shortname"
						isclear="true"></t:choose> <span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">所属机构</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 状态: </label>
				</td>
				<td class="value"><t:dictSelect field="state" type="select"
						typeGroupCode="<%=StaticValue.DIC_ENGINEER_STATE %>"
						defaultVal="${zyEngineerPage.state}"></t:dictSelect> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">状态</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 认证证书:
				</label></td>
				<td class="value">
					<t:dictSelect field="authentication" type="select" typeGroupCode="<%=StaticValue.DIC_CERTIFICATE %>" defaultVal="${zyEngineerPage.authentication}" hasPleaseSelect="false"/> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">认证证书</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 证书编号:
				</label></td>
				<td class="value"><input id="certificateNum"
					name="certificateNum" type="text"
					value='${zyEngineerPage.certificateNum}' style="width: 150px"
					class="inputxt" > <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">证书编号</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">
						上级工程师或人员: </label></td>
				<td class="value"><input name="parentId.id" type="hidden"
					id="belongEnginId" value='${zyEngineerPage.parentId.id}'> <input
					name="enginName" class="inputxt" id="enginName" readonly="readonly"
					value='${zyEngineerPage.parentId.name}' /> <t:choose
						hiddenName="belongEnginId" hiddenid="id"
						url="zyEngineerController.do?zyEngineersForParentEg" name="EngineerList"
						icon="icon-search" title="机构列表" textname="name"
						inputTextname="enginName" isclear="true"></t:choose> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">上级工程师或人员</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 身份证:
				</label></td>
				<td class="value"><input id="idNum" name="idNum" type="text"
					style="width: 150px" class="inputxt" datatype="*" ajaxurl="zyEngineerController.do?checkEgIdNumUnique&egId=${zyEngineerPage.id}"
					value='${zyEngineerPage.idNum}'> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">身份证</label></td>
			</tr>
			<%-- <tr>
				<td align="right">
					<label class="Validform_label">
						工程师类别:
					</label>
				</td>
				<td class="value">
				     	<t:dictSelect field="type" type="select" defaultVal="${zyEngineerPage.type}" typeGroupCode="<%=StaticValue.DIC_ENGINEER_TYPE %>" ></t:dictSelect> 
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">工程师类别</label>
				</td>
			</tr> --%>
		</table>
	</t:formvalid>
</body>
<script src="webpage/com/zybk/zy_engineer/zyEngineer.js"></script>